package com.example.shixunandjavagotoyangchen.BoosYang.Day003.Day003_FX2;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.shixunandjavagotoyangchen.R;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * 作者:二徒
 * 时间：2021/11/4- 11:00
 * 功能实现：
 */
public class NAALCadpter  extends BaseQuickAdapter<NAALC.ShequBean , BaseViewHolder> {

    public NAALCadpter( @Nullable List<NAALC.ShequBean> data) {
        super(R.layout.communitydapao2, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NAALC.ShequBean shequBean) {
        Glide.with(getContext()).load(shequBean.getImg()).into((ImageView) baseViewHolder.getView(R.id.youqu_img));
        baseViewHolder.setText(R.id.youqu_text1,""+shequBean.getName());
        baseViewHolder.setText(R.id.youqu_text2,""+shequBean.getMaique());
    }
}
